package common

import (
	"encoding/json"
)

var arr = make(map[string]interface{})

//统一返回json数据
func JsonData(code string, message string, data []interface{}) string {
	if len(code) == 0 || len(message) == 0{
		panic("code和message都不能为空")
	}
	b, err := json.Marshal(arr)
	if err != nil {
		panic(err)
	}
	return string(b)
}


